let mongoose = require('mongoose')
let Schema = mongoose.Schema
let db = require('../db')

let user_schema = new Schema({
    user_name:{type:String,default:'',unique:true,required:true},
    password:{type:String,required: true},
    head:{type:String,default: ''},
    mobile:{type:String,default: ''},
    email:{type:String,default: ''},
    nickname:{type:String,default: ''},
    role:{type:String,default: ''},
    sex:{type:String,default: ''},
    company_name:{type:String,default: ''},
})

module.exports = db.model('user', user_schema)